d7bc17258c24b925557121420a1bd14d2f5ce2b3,caliper/src/test/java/com/google/caliper/runner/BadUserCodeTest.java,BadUserCodeTest,testExceptionInConstructor,#,53

Before Change



  public void testExceptionInConstructor() throws Exception {
    try {
      CaliperMain.exitlessMain(
          new String[] {ExceptionInConstructorBenchmark.class.getName()}, out, err);
      fail();
    } catch (UserCodeException expected) {}
  }

After Change



  public void testExceptionInConstructor() throws Exception {
    try {
      runner.forBenchmark(ExceptionInConstructorBenchmark.class).run();
      fail();
    } catch (UserCodeException expected) {}
  }